<template>
  <el-container>
    <el-aside width="200px" class="order-index">
      <el-menu
        router class="order-index"
      >
        <el-submenu index="1">
          <template slot="title">
            <i class="el-icon-location"></i>
            <span>系统管理</span>
          </template>
          <el-menu-item-group>
            <template slot="title">系统管理</template>
            <el-menu-item index="/index">用户管理</el-menu-item>
            <el-menu-item index="/index/index">商品管理</el-menu-item>
            <el-menu-item index="/foodType">商品类别</el-menu-item>
            <el-menu-item index="/index/index">商品规格</el-menu-item>
          </el-menu-item-group>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-main>
      <router-view/>
    </el-main>
  </el-container>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  }
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.order-index{
  height: 100%;
}
</style>
